package com.xuhuan.demo.pattern.adapter.classadapter;

/**
 * @author huan.xu
 * @date 2021/10/5 23:09
 * @description 快充手机，110V
 */
public class QuickPhone {

    /**
     * 充电
     *
     * @param voltageAdapter
     */
    public void charging(IVoltageAdapter voltageAdapter) {
        if (voltageAdapter.output110V() == 110) {
            System.out.println("快充手机：电压为110V，可以充电了");
        }
    }
}
